<script setup lang="ts">
import { useCounterStore } from '@/store/counter'

const store = useCounterStore()
console.log(store.count);


</script>

<template>
  <div>
    <p>仓库数据: {{ store.count }}</p>
    <button @click="store.add()">加</button>
    <button @click="store.sub()">减</button>
  </div>
</template>

<style scoped></style>